<?php
	require 'TVB/pms/pdes/CmsFramework/requires.php';

    $act = isset($_REQUEST['act']) ? $_REQUEST['act'] : 'edit';
    $arr_act_text = array(
        'add' => 'Create',
        'edit' => 'Edit',
        'view' => 'View'
    );

    $act_text = $arr_act_text[$act]; 

    if ($act==='view') {
        FormHelper::setReadonly(true);
    }
?>

<!doctype html public "-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
    <?php include("inc/embed_top.php"); ?>    

</head>

<body id="pms-partial">

	<div id="doc4">
		<div id="bd">
            <?php
            $act = isset($_REQUEST['act']) ? $_REQUEST['act'] : 'view';
            $type = isset($_REQUEST['type']) ? $_REQUEST['type'] : 'address';
            switch ($type) {
                case 'cast':
                    include("inc/cast-step2.php");
                break;
                case 'song':
                    include("inc/song.php");
                break;
				case 'address':
					include("inc/address.php");
				break;
				case 'recipe':
					include("inc/recipe.php");
				break;
				case 'biography':
					include("inc/biography.php");
				break;
				case 'product':
					include("inc/product.php");
				break;
				case 'qa':
					include("inc/qa.php");
				break;
				case 'award':
					include("inc/award.php");
				break;
				case 'general_info':
					include("inc/general_info.php");
				break;
                case 'pageant':
                	include('inc/pageant.php');
                	break;
                case 'chapter_marking':
                    include("inc/chapter_marking.php");
                break;
				default:
                    //include("inc/great-form.php");
            }
            ?>
		</div>

	</div>

    <?php include("inc/global-cfg.php"); ?>
    <?php include("inc/embed_bottom.php"); ?>    

</body>

</html>

